<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0">
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <meta itemprop="name" content={$news_info.newstitle}/>
	<meta itemprop="image" content="" />
	<meta name="description" itemprop="description" content={$news_info.newstitle} />
 	<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/aui.css">
	<script type="text/javascript" src="__PUBLIC__/js/jquery.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
	<title>{$news_info.newstitle}</title>
  ﻿	<link href="__PUBLIC__/js/third-party/video-js/video-js.css" rel="stylesheet">
    <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
</head>
<style type="text/css">
	html,body{overflow-x:hidden;}
  .aui-card-list{margin-bottom: 0;padding-left: 5px;padding-right: 5px;}
  .clearfix{clear: both;}
  .setDay{background-color: #fafafa !important;color: #333333 !important;}
  .setnight{background-color: #222222 !important;color: #999999 !important;}
  body{margin: 0;}
  img { -ms-interpolation-mode: bicubic; }
  img { width: 100%; }
  video {width: 100%;height: auto;}
</style>
<body>
<script>
var a=document.body.innerHTML;
document.body.innerHTML=a.replace(/\ufeff/g,'');
</script>
<div class="aui-card-list" id="aui-card-list">
    <div class="aui-card-list-header aui-card-list-user">
        <div class="aui-card-list-user-name">
        <div class="aui-text-info" id="aui-text-info" style="font-size: 22px;font-family: '黑体'">{$news_info.newstitle}</div>
        </div>
        <div id="tips">
             <div class="aui-card-list-user-info text-light" style="float: left;">{$news_info.newssource} &nbsp;&nbsp;&nbsp;<span class="news_time">{$news_info.newstime|date='Y-m-d',###}</span></div>
            <div class="aui-card-list-user-info text-light" style="float: right;">责任编辑:{$news_info.newsauthor}</div>
        </div>

    </div>
    <div class="clearfix"></div>
    <div class="aui-card-list-content-padded aui-padded-t-5 aui-padded-b-5" id="ncontent">
        {$news_info.newscontent}
    </div>

</div>
<script>
$(function(){
  
	var df='{$news_info.default_video_pic}';
	df=df.split(",")[0];
	var default_pics='http://zhyl.yong-gang.com/'+df;
	$('.edui-upload-video').attr('poster',default_pics);    
	var timestamp=new Date().getTime();//时间戳

   
})
function getQueryString(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
        var r = window.location.search.substr(1).match(reg);
        if (r != null){
        	return unescape(r[2]);
        }else{
        	return null;
        }
    }

wx.config({
    debug: false,
    appId: "{$jsdata.appId}",
    timestamp: "{$jsdata.timestamp}",
    nonceStr: "{$jsdata.nonceStr}",
    signature: "{$jsdata.signature}",
    jsApiList: [
      // 所有要调用的 API 都要加到这个列表中
      	"checkJsApi",
	    "onMenuShareAppMessage",
	    "onMenuShareWeibo",
	    "onMenuShareTimeline"
    ]
  });
  wx.ready(function () {
    // 在这里调用 API
   wx.onMenuShareAppMessage({
    title: "{$news_info.newstitle}", // 分享标题
    desc: '{$news_info.newstitle}', // 分享描述
    link: 'http://zhyl.yong-gang.com', // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
    imgUrl: '__PUBLIC__/images/logo.png', // 分享图标
    type: '', // 分享类型,music、video或link，不填默认为link
    dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
    success: function () { 
        // 用户确认分享后执行的回调函数
        alert("分享成功");
    },
    cancel: function () { 
        // 用户取消分享后执行的回调函数
        alert("分享失败");
    }
});

  });

function setNight(){

    var info=document.getElementById('aui-text-info');
    var card=document.getElementById('aui-card-list');
    var tips=document.getElementById('tips');
    var plist=document.getElementsByTagName('p');
    removeClass(card,'setDay');
    removeClass(info,'setDay');
    removeClass(tips,'setDay');
    for(var i=0;i<plist.length;i++){
      removeClass(plist[i],'setnight');
      addClass(plist[i],'setnight');
    }

    addClass(card,'setnight');
    addClass(info,'setnight');
    addClass(tips,'setnight');
    // alert('晚间模式');
   }
function setDay(){

      var info=document.getElementById('aui-text-info');
      var card=document.getElementById('aui-card-list');
      var tips=document.getElementById('tips');
      var plist=document.getElementsByTagName('p');
      for(var i=0;i<plist.length;i++){
        removeClass(plist[i],'setnight');
        addClass(plist[i],'setDay');
      }
      removeClass(card,'setnight');
      removeClass(info,'setnight');
      removeClass(tips,'setnight');

      addClass(card,'setDay');
      addClass(info,'setDay');
      addClass(tips,'setDay');

      // alert('日间模式');
}

</script>

</body>
</html>